<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小池在线音乐</title>
    <link rel="stylesheet" href="css/index.css">
    <link rel="stylesheet" href="css/base.css">

</head>

<body>
    <div class="player" id='player'>
        <section class="player-bd">
            <div class="search">
                <span class="logo"></span>
                <input type="text" placeholder="在这里搜索歌曲!!" v-model='query' @keyup.enter='searchMusic'
                    @keyup.enter='playMv' autocomplete="on" autofocus>
                <span class="icon"></span>
            </div>
            <div class="content">
                <div class="playlist">
                    <ul>
                        <li v-for='item in songList'>
                            <a href="javascript:;" class="play" @click='playMusic(item.id)'></a>
                            <b>{{item.name}}</b>
                            <span @click="playMv(item.mvid)" v-if='item.mvid!=0' @click='playMv'></span>
                        </li>
                    </ul>
                </div>
                <div class="cover" :class="{playing:isPlay}">
                    <img class=" playbar" src="images/playbar.png" alt="" />
                    <img src="images/playcircle.png" alt="" class='disc autorotate' />
                    <img :src="coverUrl" alt="" class='coverimg autorotate' />


                </div>
                <div class="remark">
                    <h3>热门留言</h3>
                    <dl v-for='item in Comment'>
                        <dt><img :src="item.user.avatarUrl" alt=""></dt>
                        <dd class="name">{{item.user.nickname}}</dd>
                        <dd class="detail">{{item.content}}</dd>
                    </dl>
                    </ul>
                </div>
            </div>
            <div class="footer">
                <audio @play='play' @pause='pause' :src='musicUrl' controls="controls" autoplay="autoplay" loop="loop"
                    class="myaudio"></audio>
            </div>



        </section>

        <div class="video_con" v-show='showVideo'>
            <video ref='video' :src="mvUrl" controls="controls"></video>
            <div class="mask" @click="closeMv"></div>
        </div>
    </div>


    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <!-- 官网提供的 axios 在线地址 -->
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>

    <script src='./js/main.js'></script>

</body>

</html>